package org.mics.organization.vo;

import java.util.Date;

import javax.validation.constraints.Size;

import org.mics.jpa.vo.TreeNodeVO;
import org.mics.organization.enums.DepartmentState;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门信息
 * @author mics
 * @date 2023-9-22
 * @version  1.0
 */
@Data
@Schema(description = "部门信息")
@EqualsAndHashCode(callSuper = false)
public class DepartmentVO extends TreeNodeVO{
	
	@Schema(description = "部门名称",required = true)
  	@Size(max = 32,message = "部门最大长度不超过32位")
	private String name;
    
  	@Schema(description = "公司id")
    private String companyId;
  	
  	@Schema(description = "负责人")
    private String manager;
    
  	@Schema(description = "负责人电话")
    private String managerMobile;
    
  	@Schema(description = "邮箱")
    private String email;
	
  	@Schema(description = "部门状态")
    private DepartmentState departmentState;
  	
  	@Schema(description = "创建时间")
  	 private Date createDate;
}
